package data;

import java.util.ArrayList;

public class GetFields_Output {
	private ArrayList<Field> fields;
	
	public GetFields_Output(ArrayList<Field> in_fields){
		fields = in_fields;
	}

	public ArrayList<Field> getFields() {
		return fields;
	}

	public void setFields(ArrayList<Field> fields) {
		this.fields = fields;
	}
	
	@Override
	public String toString(){
		StringBuilder sb = new StringBuilder();
		
		for(Field field : fields){
			sb.append(field.getProjectID() + "\\n\n");
			sb.append(field.getFieldID() + "\\n\n");
			sb.append(field.getTitle() + "\\n\n");
		}
		
		return sb.toString();
	}
}
